<template>
	<view>
		<view class="search">
			<view class="searchBox">
				<navigator url="#">
					<image src="../../static/image/search.png" mode=""></image>
					搜索全部
				</navigator>
			</view>
		</view>

		<view class="cate">
			<view class="cateleft">
				<view class="cateNameList">
					<view class="cateNameItem cateActive">
						精品推荐1
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐1
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐1
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐1
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐1
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐1
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐1
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐1
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐1
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐2
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐2
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem ">
						精品推荐2
						<view class="cateLine"></view>
					</view>
					<view class="cateNameItem">
						精品推荐2
						<view class="cateLine"></view>
					</view>
				</view>
			</view>
			<view class="cateright">
				<view class="cateRightScroll">
					<view class="cateItem">
						<view class="caterightTitle">
							——<text>精品推荐1</text>——
						</view>
						<view class="cateRightList">
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
						</view>
					</view>
					
					<view class="cateItem">
						<view class="caterightTitle">
							——<text>精品推荐1</text>——
						</view>
						<view class="cateRightList">
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
						</view>
					</view>
					
					<view class="cateItem">
						<view class="caterightTitle">
							——<text>精品推荐1</text>——
						</view>
						<view class="cateRightList">
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
							<view class="cateRightItem">
								<image src="../../static/image/p1.png" mode=""></image>
								<text>手机</text>
							</view>
						</view>
						
						<view style="height: 30rpx; width: 100%;"></view>
					</view>

				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style>
	page {
		background: #f7f7f7;
	}

	.search {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 110rpx;
		width: 100%;
		background: #fff;
	}

	.searchBox {
		width: 690rpx;
		height: 70rpx;
		font-size: 28rpx;
		border-radius: 10rpx;
		color: #999;
		background-color: #f7f7f7;
	}

	.searchBox navigator {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 70rpx;
	}

	.searchBox image {
		width: 38rpx;
		height: 38rpx;
		margin-right: 10rpx;
	}

	.cate {
		position: absolute;
		background: red;
		width: 100%;
		top: 120rpx;
		bottom: 0;
		display: flex;
	}

	.cateleft {
		width: 200rpx;
		height: 100%;
		background: #f7f7f7;
	}

	.cateNameList {
		height: 100%;
		overflow: auto;/* auto会有滑动效果 hidden没有 */
	}

	.cateNameItem {
		font-size: 28rpx;
		color: #000;
		height: 100rpx;
		line-height: 100rpx;
		text-align: center;
		position: relative;
	}

	.cateActive {
		background: #fff;
	}

	.cateLine {
		position: absolute;
		width: 4rpx;
		height: 30rpx;
		top: 35rpx;
		background: #f7f7f7f;
	}

	.cateActive .cateLine {
		background: #0086B3;
	}

	.cateright {
		width: 550rpx;
		background: #fff;
		height: 100%;
	}

	.cateRightScroll {
		height: 100%;
		overflow: auto;
	}

	.caterightTitle {
		line-height: 86rpx;
		padding-top: 16rpx;
		color: #999;
		font-size: 28rpx;
		text-align: center;
	}
	.caterightTitle text{padding:0 30rpx}
	.cateRightList{
		display: flex;
		flex-wrap: wrap;
		
	}
	.cateRightItem{
		width: 33.3%;
		margin-top: 20rpx;
	}
	.cateRightItem image{
		width: 160rpx;
		height: 160rpx;
		display: block;
		margin: 0 auto;
	}
	.cateRightItem text{
		line-height: 36rpx;
		font-size: 24rpx;
		text-align: center;
		display: block;
		width: 100%;
	}
</style>
